﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KeaoBase;

namespace DataCenter.Controllers
{
    public class RSAController : Controller
    {
        public string Index()
        {
            RSAKey keyPair= KeaoRSAHelper.GetRASKey();
            var item = new { publickey=keyPair.PublicKey,privatekey=keyPair.PrivateKey };
            return Newtonsoft.Json.JsonConvert.SerializeObject(item);
        }
    }
}